ae943b5a46485ebbaf1dcf4ff73681a93862d86a,android/library/src/main/java/com/liferay/mobile/screens/asset/display/interactor/AssetDisplayInteractor.java,AssetDisplayInteractor,onSuccess,#AssetEvent#,44
Before Change
Map<String, Object> map;
try {
map = JSONUtil.toMap(event.getJSONObject());
} catch (JSONException ex) {
event.setException(ex);
onFailure(event);
return;
}
AssetEntry assetEntry = AssetFactory.createInstance(map);
getListener().onRetrieveAssetSuccess(assetEntry);
}
After Change
AssetEntry assetEntry = null;
try {
Map<String, Object> map = JSONUtil.toMap(event.getJSONObject());
assetEntry = AssetFactory.createInstance(map);
} catch (JSONException ex) {
event.setException(ex);
onFailure(event);